package com.xpertline.ui.config;

import javax.swing.JPanel;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import javax.swing.JTextField;
import java.awt.Insets;
import javax.swing.JComboBox;
import java.awt.Color;
import javax.swing.JTable;
import javax.swing.JCheckBox;
import javax.swing.border.TitledBorder;
import java.awt.Component;
import javax.swing.Box;

import com.xpertline.ui.factory.CheckBoxFactory;
import javax.swing.JSpinner;
import com.xpertline.ui.factory.TimeSpinnerFactory;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import com.xpertline.ui.factory.CommonLabelFactory;
import com.xpertline.ui.factory.CommonTextFieldFactory;
import javax.swing.LayoutStyle.ComponentPlacement;
import com.xpertline.ui.factory.ComboBoxFactory;

public class MoneyPane extends JPanel {
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;

	/**
	 * Create the panel.
	 */
	public MoneyPane() {
		
		JLabel lblGiTin = CommonLabelFactory.createCommonJLabel();
		lblGiTin.setText("Gi\u00E1 ti\u1EC1n");
		
		textField = CommonTextFieldFactory.createJTextField();
		
		JLabel lblVn = CommonLabelFactory.createCommonJLabel();
		lblVn.setText("VN\u0110/");
		
		textField_1 = CommonTextFieldFactory.createJTextField();
		
		JLabel lblPht = CommonLabelFactory.createCommonJLabel();
		lblPht.setText("Ph\u00FAt");
		
		JLabel lblLmTrnThi = CommonLabelFactory.createCommonJLabel();
		lblLmTrnThi.setText("L\u00E0m tr\u00F2n th\u1EDDi gian");
		
		JComboBox comboBox = ComboBoxFactory.createJComboBox();
		
		JLabel lblTnhThm = CommonLabelFactory.createCommonJLabel();
		lblTnhThm.setText("T\u00EDnh th\u00EAm");
		
		textField_2 = CommonTextFieldFactory.createJTextField();
		
		JLabel lblPht_1 = CommonLabelFactory.createCommonJLabel();
		lblPht_1.setText("ph\u00FAt");
		
		JLabel lblGimGi = CommonLabelFactory.createCommonJLabel();
		lblGimGi.setText("Gi\u1EA3m gi\u00E1");
		
		textField_3 = CommonTextFieldFactory.createJTextField();
		
		JLabel label = CommonLabelFactory.createCommonJLabel();
		label.setText("10%");
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(30)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(lblLmTrnThi)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(comboBox, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE))
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(lblGiTin)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(textField, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(lblVn)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, 39, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(lblPht))
						.addGroup(groupLayout.createSequentialGroup()
							.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING, false)
								.addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()
									.addComponent(lblGimGi)
									.addPreferredGap(ComponentPlacement.UNRELATED)
									.addComponent(textField_3))
								.addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()
									.addComponent(lblTnhThm)
									.addPreferredGap(ComponentPlacement.RELATED)
									.addComponent(textField_2, GroupLayout.PREFERRED_SIZE, 54, GroupLayout.PREFERRED_SIZE)))
							.addPreferredGap(ComponentPlacement.RELATED)
							.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
								.addComponent(label)
								.addComponent(lblPht_1))))
					.addContainerGap(445, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(26)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblGiTin)
						.addComponent(textField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(lblVn)
						.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(lblPht))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblLmTrnThi)
						.addComponent(comboBox, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblTnhThm)
						.addComponent(textField_2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(lblPht_1))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblGimGi)
						.addComponent(textField_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(label))
					.addContainerGap(315, Short.MAX_VALUE))
		);
		setLayout(groupLayout);

	}
}
